package mr.zhang.pojo.model;

/**
 * TCensusProjectId entity. @author MyEclipse Persistence Tools
 */

public class TCensusProjectId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String projectName;
	private String backstageAddress;
	private String backstagePassword;
	private Integer siteManagerNumber;
	private Integer counselorNumber;

	// Constructors

	/** default constructor */
	public TCensusProjectId() {
	}

	/** full constructor */
	public TCensusProjectId(Integer id, String projectName,
			String backstageAddress, String backstagePassword,
			Integer siteManagerNumber, Integer counselorNumber) {
		this.id = id;
		this.projectName = projectName;
		this.backstageAddress = backstageAddress;
		this.backstagePassword = backstagePassword;
		this.siteManagerNumber = siteManagerNumber;
		this.counselorNumber = counselorNumber;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getBackstageAddress() {
		return this.backstageAddress;
	}

	public void setBackstageAddress(String backstageAddress) {
		this.backstageAddress = backstageAddress;
	}

	public String getBackstagePassword() {
		return this.backstagePassword;
	}

	public void setBackstagePassword(String backstagePassword) {
		this.backstagePassword = backstagePassword;
	}

	public Integer getSiteManagerNumber() {
		return this.siteManagerNumber;
	}

	public void setSiteManagerNumber(Integer siteManagerNumber) {
		this.siteManagerNumber = siteManagerNumber;
	}

	public Integer getCounselorNumber() {
		return this.counselorNumber;
	}

	public void setCounselorNumber(Integer counselorNumber) {
		this.counselorNumber = counselorNumber;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TCensusProjectId))
			return false;
		TCensusProjectId castOther = (TCensusProjectId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getProjectName() == castOther.getProjectName()) || (this
						.getProjectName() != null
						&& castOther.getProjectName() != null && this
						.getProjectName().equals(castOther.getProjectName())))
				&& ((this.getBackstageAddress() == castOther
						.getBackstageAddress()) || (this.getBackstageAddress() != null
						&& castOther.getBackstageAddress() != null && this
						.getBackstageAddress().equals(
								castOther.getBackstageAddress())))
				&& ((this.getBackstagePassword() == castOther
						.getBackstagePassword()) || (this
						.getBackstagePassword() != null
						&& castOther.getBackstagePassword() != null && this
						.getBackstagePassword().equals(
								castOther.getBackstagePassword())))
				&& ((this.getSiteManagerNumber() == castOther
						.getSiteManagerNumber()) || (this
						.getSiteManagerNumber() != null
						&& castOther.getSiteManagerNumber() != null && this
						.getSiteManagerNumber().equals(
								castOther.getSiteManagerNumber())))
				&& ((this.getCounselorNumber() == castOther
						.getCounselorNumber()) || (this.getCounselorNumber() != null
						&& castOther.getCounselorNumber() != null && this
						.getCounselorNumber().equals(
								castOther.getCounselorNumber())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getProjectName() == null ? 0 : this.getProjectName()
						.hashCode());
		result = 37
				* result
				+ (getBackstageAddress() == null ? 0 : this
						.getBackstageAddress().hashCode());
		result = 37
				* result
				+ (getBackstagePassword() == null ? 0 : this
						.getBackstagePassword().hashCode());
		result = 37
				* result
				+ (getSiteManagerNumber() == null ? 0 : this
						.getSiteManagerNumber().hashCode());
		result = 37
				* result
				+ (getCounselorNumber() == null ? 0 : this.getCounselorNumber()
						.hashCode());
		return result;
	}

}